]> dgit.raspbian.org Git - gnome-shell.git/commitdiff
sessionMode: Rename _getModes()
authorFlorian Müllner <fmuellner@gnome.org>
Fri, 6 Dec 2013 20:28:23 +0000 (21:28 +0100)
committerFlorian Müllner <fmuellner@gnome.org>
Sat, 7 Dec 2013 09:10:06 +0000 (10:10 +0100)
Since commit da4238ec681c7ca, the function doesn't return anything,
so rename it to _loadModes() to reflect this.

https://bugzilla.gnome.org/show_bug.cgi?id=720017

js/ui/sessionMode.js

index 9670c23a41a69f55163d34405689485808c49bbe..2600cbb68fc5894d09e6e0411127bac419edd346 100644 (file)
@@ -128,14 +128,14 @@ function _loadMode(file, info) {
     _modes[modeName]['isPrimary'] = true;
 }
 
-function _getModes() {
+function _loadModes() {
     FileUtils.collectFromDatadirs('modes', false, _loadMode);
 }
 
 function listModes() {
-    let modes = _getModes();
+    _loadModes();
     modes.forEach(function() {
-        let names = Object.getOwnPropertyNames(modes);
+        let names = Object.getOwnPropertyNames(_modes);
         for (let i = 0; i < names.length; i++)
             if (_modes[names[i]].isPrimary)
                 print(names[i]);